package com.java65;

import java.util.Scanner;

public class ForDome3 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入一个值:");
        int num = input.nextInt();
        System.out.println("根据这个值可以生成以下加法表：");
        for (int i=0; i<num+1; i++) {
            System.out.println(i + " + " + (num-i) + " = " + num);
        }
    }
}

